package com.zkthink.ceres.applet.product.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**

@Author cmz
@Date 2024-05-07 9:53
*/
@Data
@TableName(value = "applet_vehicles_product")
public class AppletVehiclesProduct {
    /**
     * 理疗车产品中间表id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 产品id
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 理疗车id
     */
    @TableField(value = "vehicles_id")
    private Long vehiclesId;

    /**
     * 门市价
     */
    @TableField(value = "store_price")
    private BigDecimal storePrice;

    /**
     * 团购价
     */
    @TableField(value = "group_buy_price")
    private BigDecimal groupBuyPrice;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 最后修改人
     */
    @TableField(value = "update_user")
    private String updateUser;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @TableField(value = "is_delete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    public static final String COL_ID = "id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_VEHICLES_ID = "vehicles_id";

    public static final String COL_STORE_PRICE = "store_price";

    public static final String COL_GROUP_BUY_PRICE = "group_buy_price";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";
}